import com.fitt.web.fotto.racetrack.Runner

class BootStrap {
    def init = { servletContext ->
		def jane = new Runner(
			firstName: "Jane", 
			lastName: "Doe",
			dateOfBirth: (new Date() - 365 * 30),
			gender: "F",
			address: "Guangzhou",
			city: "NC",
			state: "NC",
			zipcode: "12345",
			email: "jane@gmail.com"
			)
		jane.save()
		
		if(jane.hasErrors()) {
			println jane.errors
		}
    }
	
    def destroy = {
    }
}
